package io.jft.doll.api

import com.g.base.api.createRetrofitService
import com.g.base.appContent
import com.tencent.mm.opensdk.openapi.IWXAPI
import com.tencent.mm.opensdk.openapi.WXAPIFactory

/**
 * Created by G on 2017/11/13 0013.
 */
const val BASE_URL = "https://wwj.jzz18.cn/wawa/api_v1/"
val apiProvider by lazy { createRetrofitService(BASE_URL) }
val apiProviderMock by lazy { apiProvider }
//val apiProviderMock by lazy { createRetrofitService("http://dsn.apizza.cc/mock/8409e03f001d67d626ec4751e7253dee/") }
val weChatApi: IWXAPI by lazy {
    WXAPIFactory.createWXAPI(appContent, "wxb07cac449fbf750d", true)
            .apply {
                registerApp("wxb07cac449fbf750d")
            }
}